import redis

# 连接到Redis
r = redis.Redis(host='8.133.4.82', port=6379)

# 添加起始URL
r.lpush('movie_rank:start_urls', 'https://book.douban.com/top250')